<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

define('DS', DIRECTORY_SEPARATOR);
define('BASEPATH', dirname(__FILE__) . DS);
define('TPLPATH', BASEPATH . 'tpl' . DS);
require BASEPATH . 'inc' . DS . 'init.php';
header("Content-type: text/html; charset=utf-8");

$user = UserObj::I('_CURRENT_');

if (isset($_REQUEST[VAR_MOD]) && isset($_REQUEST[VAR_ACT])) {
    $_module = (string) trim($_REQUEST[VAR_MOD]);
    $_action = (string) trim($_REQUEST[VAR_ACT]);
} else {
    ($_module = $JA_CONFIG['default'][0]) || jaError(2, true);
    ($_action = $JA_CONFIG['default'][1]) || jaError(3, true);
}
$_className = isset($JA_CONFIG['modules'][$_module]['class']) ? $JA_CONFIG['modules'][$_module]['class'] : $_module;
$_methodName = isset($JA_CONFIG['modules'][$_module]['actions'][$_action]) ? $JA_CONFIG['modules'][$_module]['actions'][$_action][0] : $_action;
($__c = I($_className)) || jaError(4, true);
$__c->$_methodName();

?>
